/**
  * @name 格式化日期
  * @description: 
  * @param 
  * @return 
  */
export const formDate = (date)=>{
	function formDateNum(num){
		let str = String(num)
		return str.length >= 2 ? str : '0'+ str
	}
	
	let year = date.getFullYear()
	let month = date.getMonth()+1
	let dates = date.getDate()
	return year + "-" + formDateNum(month) + "-" + formDateNum(dates)
}